export interface User {
  id: number
  username: string
  email: string
  avatar?: string
  createdAt: string
}

export interface Category {
  id: number
  name: string
  description: string
  color: string
  sortOrder: number
}

export interface Post {
  id: number
  title: string
  content: string
  author: User
  category: Category
  views: number
  likes: number
  replies: number
  isPinned: boolean
  isLocked: boolean
  createdAt: string
  updatedAt: string
}

export interface Reply {
  id: number
  content: string
  author: User
  postId: number
  parentId?: number
  likes: number
  createdAt: string
  updatedAt: string
}
